﻿#region Copyright
/* © 2008 George Tsiokos, licensed under the Microsoft Reciprocal License (Ms-RL) */
#endregion
using System.Threading;
using Comet.ComponentModel;

namespace Comet.Net {
    public abstract class CometBusHandler<T> : CometNetHandler {

		#region Fields (1) 

        private readonly Bus<T> _bus = new Bus<T> ();

		#endregion Fields 

		#region Properties (1) 

        protected Bus<T> Bus {
            get {
                return _bus;
            }
        }

		#endregion Properties 

		#region Methods (1) 


		// Public Methods (1) 

        public override WaitHandle GetWaitHandle () {
            return _bus.Subscribe ();
        }


		#endregion Methods 

    }
}